<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" errorPage="hello.jsp" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<title>教师主页</title>
<style>
body {background:url(/exam/teacher/4.jpg) top center no-repeat; background-size:cover;}
</style> 
</head>
<body >
<jsp:include page="title.jsp" /><br/>

	<font color="red"><s:actionerror/></font>
	<font color="red"><s:actionmessage /></font>
 

	
	
<h4 align="center">课程：</h4><br/>
<div align="center" >
	<table align="center" style="width:40%;">
	<s:iterator value="#request.courses" >
   	  <tr>
   		<td>	
   		<s:form action="getInCourse.action">
   			<input type="hidden" name="courseID" value="<s:property value="courseID" />">
   			<input type="submit" class="btns" value="<s:property value="courseName" />">
   		</s:form> 
   		</td>
   		
   		<td>
   		<s:form action="deleteCourseA.action">
   			<input type="hidden" name="courseID" value="<s:property value="courseID" />">
   			<input type="submit" class="btns" value="删除">
   		</s:form> 
   		</td>
   	  </tr>
   	</s:iterator>
   	</table>
   	<br/>
   	
   	<s:form action="addCourseA">
   	<input type="submit" class="btns" value="增加课程"/>
   	</s:form>
</div> 

</body>
</html>